package com.stu.factorybean;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestProxy {
	@Test
	public void demo1() {
		ApplicationContext applicationContext=new ClassPathXmlApplicationContext("com/zm/factorybean/bean.xml");
		UserService userService = applicationContext.getBean("userServiceImpl",UserService.class);
		userService.addUser();
		userService.updateUser();
		userService.deleteUser();
	}
}
